/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.source.entity.video;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.XmlType;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 视频资源管理Entity
 * @author ZC
 * @version 2017-06-16
 */
@XmlType(name="video") 
public class EleSourceVideo extends DataEntity<EleSourceVideo> {
	
	private static final long serialVersionUID = 1L;
	private EleSourceVideoGroup group;		// group 父类
	private String name;		// 名称
	private String startTime;		// 开始播放时间
	private String endTime;		// 结束播放时间
	private String startDate;
	private String endDate;
	private String frequency;		// 连续播放次数
	private String index;		// 播放序列序号
	private String path;		// path
	private String liveUrl;
	public EleSourceVideo() {
		super();
	}

	public EleSourceVideo(String id){
		super(id);
	}

	public EleSourceVideo(EleSourceVideoGroup group){
		this.group = group;
	}
	@XmlTransient
	@Length(min=0, max=100, message="group长度必须介于 0 和 100 之间")
	public EleSourceVideoGroup getGroup() {
		return group;
	}

	public void setGroup(EleSourceVideoGroup group) {
		this.group = group;
	}
	
	@XmlElement(name = "name")  
	@Length(min=0, max=255, message="名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@XmlElement(name = "start_time")  
	@Length(min=0, max=50, message="开始播放时间长度必须介于 0 和 50 之间")
	public String getStartTime() {
		return startTime;
	}

	public void setStartTime(String startTime) {
		this.startTime = startTime;
	}
	
	@XmlElement(name = "end_time")  
	@Length(min=0, max=50, message="结束播放时间长度必须介于 0 和 50 之间")
	public String getEndTime() {
		return endTime;
	}

	public void setEndTime(String endTime) {
		this.endTime = endTime;
	}
	@XmlElement(name = "start_date")  
	@Length(min=0, max=50, message="开始播放日期长度必须介于 0 和 50 之间")
	public String getStartDate() {
		return startDate;
	}

	public void setStartDate(String startDate) {
		this.startDate = startDate;
	}
	@XmlElement(name = "end_date")  
	@Length(min=0, max=50, message="结束播放日期长度必须介于 0 和 50 之间")
	public String getEndDate() {
		return endDate;
	}

	public void setEndDate(String endDate) {
		this.endDate = endDate;
	}

	@XmlElement(name = "frequency")  
	public String getFrequency() {
		return frequency;
	}

	public void setFrequency(String frequency) {
		this.frequency = frequency;
	}
	
	@XmlElement(name = "index")  
	public String getIndex() {
		return index;
	}

	public void setIndex(String index) {
		this.index = index;
	}
	
	@XmlElement(name = "path")  
	@Length(min=0, max=255, message="path长度必须介于 0 和 255 之间")
	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}
	@XmlElement(name = "URL")  
	@Length(min=0, max=255, message="live_url长度必须介于 0 和 255 之间")
	public String getLiveUrl() {
		return liveUrl;
	}

	public void setLiveUrl(String liveUrl) {
		this.liveUrl = liveUrl;
	}
	
}